<?php
/**
 * 获取HTML页面组件地址
 * @param type $key
 * @param type $ver
 */
function get_url_path($key, $ver){
    switch (strtolower($key)){
        case "bootstrap":
            return "http://cdn.bootcss.com/bootstrap";
        case "js":
            return "/public/static/js";
        case "amazeui":
            return "http://cdn.amazeui.org/amazeui";
        case "polyfill":
            return "/public/static/polyfill";
    }
}

/**
 * 重写U函数生成, 主要为将生成的地址转为小写
 * @param type $url
 * @param type $vars
 * @param type $suffix
 * @param type $domain
 * @return type
 */
function url($url='',$vars='',$suffix=true,$domain=false){
    return strtolower(U($url,$vars,$suffix,$domain));
}